﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////

#pragma once
#include "NdbDataSchema.h"

namespace gcmp { 

    /// \brief 点类型
    SERIALIZABLE_ENUM_CLASS(PointTypes)
    {
        Unset = 0,                          ///< 未设置
        Single = 1,                         ///< 单个点
        LineStart = 2,                      ///< 线的起始点
        LineEnd = 4,                        ///< 线的终点
        ArcStart = 8,                       ///< 弧的起始点
        ArcEnd = 16,                        ///< 弧的终点
        ArcMid = 32,                        ///< 弧的中心点
        EllipseStart = 64,                  ///< 椭圆的起点
        EllipseCenter = 128,                ///< 椭圆的圆心
        EllipseMajorAxisDirection = 256,    ///< 椭圆主轴单位化方向
        EllipseAxisLengths = 512,           ///< (MajorLength, MinorLength, 0)
        EllipseEnd = 1024,                  ///< 椭圆的终点
        ArcCenter = 1025,                       ///<圆心
        ArcXAxis = 1026,                        ///<圆弧的X轴
        ArcYAxis = 1027,                        ///<圆弧的Y轴
        ArcStartAngle = 1028,                   ///<圆弧的起始角
        ArcEndAngle = 1029,                     ///<圆弧的终止角
        ArcRadius = 1030,                       ///<圆弧的半径
        ArcAnticlockwise = 1031,                ///<圆弧的时针方向
        EllipseAngle = 1032,                    ///<椭圆的起始角、终止角
    };

}// namespace gcmp
